import service from "./indexApi";
const orderApi={
    //查询所有订单
    selectAll(){
        return service.get('/admin/order');
    },
    //获取所有可入住房间
    allRoom(oid){
        return service.get(`/admin/order/allRoom/${oid}`);
    },
    //分配房间
    insertOidAndRid(oid,rids){
        return service.post('/admin/order/oidAndRid',{
            oid,
            rids
        });
    },
    //完成订单修改订单状态
    updateOstate(oid){
        return service.put(`/admin/order/${oid}`);
    }
}
export default orderApi;